//
//  fractionCalcViewController.h
//  fractionCalc
//
//  Created by panos on 27/5/11.
//  Copyright __MyCompanyName__ 2011. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Calculator.h"

@interface fractionCalcViewController : UIViewController {
	UILabel *display;
	char op;
	int currentNumber;
	NSMutableString *displayString;
	BOOL firstOperand, isNumerator;
	Calculator *myCalculator;
}

@property (nonatomic, retain) IBOutlet UILabel *display;
@property (nonatomic, retain) NSMutableString *displayString;

-(void) processDigit: (int) digit;
-(void) processOp: (char) op;
-(void) storeFracPart;

-(IBAction) clickDigit: (id) sender;
-(IBAction) clickPlus: (id) sender;
-(IBAction) clickMinus: (id) sender;
-(IBAction) clickMultiply: (id) sender;
-(IBAction) clickDivide: (id) sender;

-(IBAction) clickOver: (id) sender;
-(IBAction) clickEquals: (id) sender;
-(IBAction) clickClear: (id) sender;

@end
